﻿/**
 * content
 * ibio-develop
 */
 (function(){
var libs = [];
var leaveRegex = /[leave|mail]\.happyelements\.[net|com]/i;
//
if(leaveRegex.test(location.hostname)){
	libs.push("libs/jquery-1.8.0.js");
	libs.push("libs/underscore.js");
	libs.push("libs/common.js");
	libs.push("libs/des.js");
	libs.push("contents/" + location.hostname.replace(/\./ig, "_"));
}

chrome.extension.onMessage.addListener(function(result){
	if(result.type == "onLoadContentComplete"){
		// init();
	}
});

chrome.extension.sendMessage({type:"loadContents", list:libs});

}).call(this);